Abstract
Traditional approaches to the study of technical analysis (TA) often focus on the performance of a single indicator, which seems to fall short in scope and depth. We use a genetic algorithm (GA) to optimize trading strategies in the three major Forex markets in order to ascertain the suitability of TA strategies and rules to achieve consistently superior returns, by comparing momentum, trend and breakout indicators. The indicators with the parameters generated through our GA consistently outperform the equivalent indicators by applying parameters commonly used by the trading industry. EUR/USD and GBP/USD markets have interesting return figures before trading costs. The inclusion of spreads and commissions weakens returns substantially, suggesting that under a more realistic set of assumptions these markets could be efficient. Trend indicators generate better outcomes and GBP/USD qualifies as the most profitable market. Different aggregate returns in different markets may be evidence of distinct maturation stages under an evolving efficiency market perspective. Our GA is able to search a wider solution space than traditional configurations and offers the possibility of recovering latent data, thus avoiding premature convergence.
Similar content being viewed by others
Notes
Daily data provided by Dukascopy Bank SA, Swiss Forex Bank & Marketplace; http://www.dukascopy.com/.
References
Aguilar-Rivera, R., Valenzuela-Rendón, M., & Rodríguez-Ortiz, J. J. (2015). Genetic algorithms and Darwinian approaches in financial applications: A survey. Expert Systems with Applications. doi:10.1016/j.eswa.2015.06.001.
Andreou, A. S., Georgopoulos, E. F., & Likothanassis, S. D. (2002). Exchange-rates forecasting: A hybrid algorithm based on genetically optimized adaptive neural networks. Computational Economics, 20, 191–210.
Aronson, D. (2007). Evidence-based technical analysis. Hoboken: Wiley.
Bajgrowicz, P., & Scaillet, O. (2012). Technical trading revisited: False discoveries, persistence tests, and transaction costs. Journal of Financial Economics, 106, 473–491.
Brabazon, A., & O’Neill, M. (2004). Evolving technical trading rules for spot foreign-exchange markets using grammatical evolution. Computational Management Science, 1, 311–327.
Cavalcante, R. C., Brasileiro, R. C., Souza, V. L. F., Nobrega, J. P., & Oliveira, A. L. I. (2016). Computational intelligence and financial markets: A survey and future directions. Expert Systems with Applications, 55, 194–211. doi:10.1016/j.eswa.2016.02.006.
Chen, C.-W., Huang, C.-S., & Lai, H.-W. (2009). The impact of data snooping on the testing of technical analysis: An empirical study of Asian stock markets. Journal of Asian Economics, 20, 580–591.
Chen, S.-W. (2010). Testing the hypothesis of market efficiency in the Taiwan-US forward exchange market since 1990. Applied Economics, 42, 121–132.
Chiam, S. C., Tan, K. C., & Mamun, A. Al. (2009). Investigating technical trading strategy via an multi-objective evolutionary platform. Expert Systems with Applications, 36, 10408–10423.
Colby, R. W. (2003). The encyclopedia of technical market indicators (2nd ed.). New York: McGraw-Hill.
Falbo, P., & Pelizzari, C. (2011). Stable classes of technical trading rules. Applied Economics, 43, 1769–1785.
Fama, E. F. (1965a). The behavior of stock-market prices. The Journal of Business, 38(1), 34–105.
Fama, E. F. (1965b). Random walks in stock market prices. Financial Analysts Journal.
Fama, E. F. (1970). Efficient capital markets: A review of theory and empirical work. The Journal of Finance, 25(2), 383–417.
Fama, E. F., Fisher, L., Jensen, M. C., & Roll, R. (1969). The adjustment of stock prices to new information. International Economic Review, 10(1), 1–21.
Fang, J., Jacobsen, B., & Qin, Y. (2014). Predictability of the simple technical trading rules: An out-of-sample test. Review of Financial Economics, 23, 30–45.
Godinho, P. (2012). Can abnormal returns be earned on band width bounded currencies? Evidence from a genetic algorithm. Economic Issues, 17(1), 1–22. Retrieved July 22, 2014 from http://www.economicissues.org.uk/Files/2012/112Godinho.pdf.
Haupt, R. L., & Haupt, S. E. (2000). Optimum population size and mutation rate for a simple real genetic algorithm that optimizes array factors. Applied Computational Electromagnetics Society Journal, 15(2), 94–102.
Hryshko, A., & Downs, T. (2004). System for foreign exchange trading using genetic algorithms and reinforcement learning. International Journal of Systems Science, 35, 763–774.
Hsu, C.-M. (2014). An integrated portfolio optimisation procedure based on data envelopment analysis, artificial bee colony algorithm and genetic programming. International Journal of Systems Science, 45(12), 2645–2664. doi:10.1080/00207721.2013.775388.
Kahneman, D., & Tversky, A. (1979). Prospect theory: An analysis of decision under risk. Econometrica, 47(2), 263–292.
Kirkpatrick, C. D., & Dahlquist, J. R. (2011). Technical analysis—the complete resource for financial market technicians (2nd ed.). Upper Saddle River: FT Press.
Kuang, P., Schröder, M., & Wang, Q. (2014). Illusory return of technical analysis in emerging foreign exchange markets. International Journal of Forecasting, 30, 192–205.
Lee, S. M., & Eom, H. B. (1989). A multi criteria approach to formulating international project financing strategies. Journal of the Operational Research Society, 40(6), 519–528.
Lin, X., Yang, Z., & Song, Y. (2011). Intelligent stock trading system based on improved technical analysis and Echo State Network. Expert Systems with Applications, 38, 11347–11354.
Lo, A. W. (2004). The adaptive markets hypothesis: Market efficiency from an evolutionary perspective. Journal of Portfolio Management, 30, 15–29.
Lo, A. W. (2005). Reconciling efficient markets with behavioral finance: The adaptive markets hypothesis. Journal of Investment Consulting, 7, 21–44.
Lo, A. W., Mamaysky, H., & Wang, J. (2000). Foundations of technical analysis: Computational algorithms, statistical inference, and empirical implementation. The Journal of Finance, 55(4), 1705–1765.
Meade, N., & Salkin, G. R. (1989). Index funds—construction and performance measurement. Journal of the Operational Research Society, 40(10), 871–879.
Mendes, L., Godinho, P., & Dias, J. (2012). A Forex trading system based on a genetic algorithm. Journal of Heuristics, 18(4), 627–656. doi:10.1007/s10732-012-9201-y.
Menkhoff, L., & Taylor, M. P. (2007). The obstinate passion of foreign exchange professionals: Technical analysis. Warwick Economic Research Papers, No. 769.
Murphy, J. J. (1999). Technical analysis of the financial markets. New York: New York Institute of Finance.
Neely, C. J., & Weller, P. A. (2003). Intraday technical trading in the foreign exchange market. Journal of International Money and Finance, 22, 223–237.
Neely, C. J., Weller, P. A., & Ulrich, J. M. (2009). The adaptive markets hypothesis: Evidence from the foreign exchange market. Journal of Financial and Quantitative Analysis, 44(2), 467–488.
Olson, D. (2004). Have trading rule profits in the currency markets declined over time? Journal of Banking & Finance, 28, 85–105.
Ozturk, M., Toroslu, I. H., & Fidan, G. (2016). Heuristic based trading system on Forex data using technical indicator rules. Applied Soft Computing Journal, 43, 170–186. doi:10.1016/j.asoc.2016.01.048.
Papadamou, S., & Stephanides, G. (2007). Improving technical trading systems by using a new MATLAB-based genetic algorithm procedure. Mathematical and Computer Modelling, 46, 189–197.
Pavlova, I., & Parhizgari, A. M. (2011). In search of momentum profits: Are they illusory? Applied Financial Economics, 21, 1617–1639.
Reitz, S. (2006). On the predictive content of technical analysis. North American Journal of Economics and Finance, 17, 121–137.
Schaffer, J. D., Caruana, R., Eshelman, L. J., & Das, R. (1989). A study of control parameters affecting online performance of genetic algorithms for function optimization. In Proceedings of the 3rd international conference on genetic algorithms. George Mason University, Fairfax, VA.
Schulmeister, S. (2008). Components of the return of technical currency trading. Applied Financial Economics, 18, 917–930.
Schulmeister, S. (2009). Return of technical stock trading: Has it moved from daily to intraday data? Review of Financial Economics, 18, 190–201.
Schwager, J. D. (1996). Schwager on futures—technical analysis. New York: Wiley.
Shmilovici, A., Kahiri, Y., Ben-Gal, I., & Hauser, S. (2009). Measuring the efficiency of the intraday Forex market with a universal data compression algorithm. Computational Economics, 33, 131–154.
Suganya, N. C., & Pai, G. A. V. (2012). Wavelet evolutionary network for complex-constrained portfolio rebalancing. International Journal of Systems Science, 43(7), 1367–1385. doi:10.1080/00207721.2011.601351.
Taylor, S. J. (1989). Simulating financial prices. Journal of the Operational Research Society, 40(6), 567–569.
Tversky, A., & Kahneman, D. (1974). Judgment under uncertainty: Heuristics and biases. Science, 185(4157), 1124–1131.
Tversky, A., & Kahneman, D. (1981). The framing of decisions and the psychology of choice. Science, 211(4481), 453–458.
Wilson, G., & Banzhaf, W. (2010). Interday foreign exchange trading using linear genetic programming. In GECCO—Genetic and Evolutionary Computation Conference (pp. 1139–1146).
Yen, S. M.-F., & Hsu, Y.-L. (2010). Return of technical analysis in financial and commodity futures markets—a reality check. Decision Support Systems, 50, 128–139.
Yu, H., Nartea, G. V., Gan, C., & Yao, L. J. (2013). Predictive ability and return of simple technical trading rules: Recent evidence from Southeast Asian stock markets. International Review of Economics and Finance, 25, 356–371.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Macedo, L.L., Godinho, P. & Alves, M.J. A Comparative Study of Technical Trading Strategies Using a Genetic Algorithm. Comput Econ 55, 349–381 (2020). https://doi.org/10.1007/s10614-016-9641-9
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10614-016-9641-9